*** Settings ***
Documentation           通过cli获取BCU板卡的硬件信息
Resource                ../../test_function/cli/ssh.robot
Resource                ../../test_function/resource.robot
Suite Setup             Open SSH Connection
Suite Teardown          Close SSH Session    ${ssh}

*** Variables ***
${service}              bmc.kepler.hwproxy
${path}                 /bmc/kepler/Chip/Smc/Smc_CpuBrdSMC_010101
${interface}            bmc.kepler.Chip.BlockIO
${read}                 Read a{ss}uu 0 0x500 2
${input}                ${BUSCTL_CALL} ${service} ${path} ${interface} ${read}
${expected_output}      17 85

*** Test Cases ***
Get BCU HW Info Via cli
    [Documentation]    通过ssh查询BCU板卡的硬件信息
    [Tags]    Get_BCU_HW_Info_Via_cli

    ${rsp}=    Execute SSH Command    ${ssh}    ${input}
    Should Not Be Empty    ${rsp}    msg=未获取BCU板卡硬件信息
    Log    BCU板卡硬件信息: \n${rsp}    console=False
    Should Contain    ${rsp}    ${expected_output}    msg=未找到硬件信息

